
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{
	TEST(Should be able to get the area)
	{	    
		Square square(5);
		ASSERT_EQ(25, square.getArea());
	}

	TEST(Should be able to get the perimeter)
	{
		Square square(5);
		ASSERT_EQ(20, square.getPerimeter());
	}
	
	TEST(Should be able to set the side length)
	{	    
		Square square(5);
		square.setSide(10);
		ASSERT_EQ(100, square.getArea());
	}
};
